package com.easytopit.chain;

public abstract class Chain {
	protected Chain chain;

	public void setNextChain(Chain chain) {
		this.chain = chain;
	}
	
	public abstract void execute(int i);

	protected void executeNextChain(int i) {
		if (chain!=null) {
			chain.execute(i);
		}
	}
}
